#include <iostream>
#include <list>
using namespace std;

void show_list(list<int> L)
{ list<int>::iterator p;
  for(p=L.begin(); p!=L.end(); p++)
    cout << *p << " ";
  cout << endl;
}    

int main()
{ int a[4]={12,15,65,70}; 
  list<int> L1(a,a+4); 

  list<int> L2;
  L2.push_back(17);  
  L2.push_back(55);  
  L2.push_back(66);  
  L2.push_back(77);  
  L2.push_back(90);  
  
  cout << "L1: "; show_list(L1);
  cout << "L2: "; show_list(L2);
  
  L1.merge(L2);
  
  cout << "L1: "; show_list(L1);
  cout << "L2: "; show_list(L2);

  return 0;
}    
